package com.coreJava.meiju.danli;

import java.util.concurrent.Callable;
import java.util.concurrent.CountDownLatch;

/**
 * 作者: LCG
 * 日期: 2020/2/13 00:44
 * 描述:
 */
public class MyCallAble implements Callable<TestDanLi> {

    private CountDownLatch countDownLatch;

    public MyCallAble(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }

    @Override
    public TestDanLi call() throws Exception {
        countDownLatch.countDown();
        return TestMeiJuDanLi.TESTDANLI.getDanLi();
    }
}
